package globalVisionEntertainment.nba;

public class PlayerGameStatistic
{

	final String position;

	final boolean isStarter;

	private final PlayerQuarterStatistic[] playerQuarterStatistics = new PlayerQuarterStatistic[BasketballRules.normalSectionCount];

	final String playerName;

	final int virtualPosition;

	public PlayerGameStatistic(String starterName, String position, int virtualPosition)
	{
		this.playerName = starterName;
		this.isStarter = true;
		this.position = position;
		this.virtualPosition = virtualPosition;
	}

	public PlayerGameStatistic(String benchName, String position)
	{
		this.playerName = benchName;
		this.isStarter = false;
		this.position = position;
		this.virtualPosition = 0;
	}

	public String getPlayerName()
	{
		return playerName;
	}

	public PlayerQuarterStatistic[] getPlayerGameStatistic()
	{
		return playerQuarterStatistics;
	}

	public String getPosition()
	{
		return position;
	}

	public int getVirtualPosition()
	{
		return virtualPosition;
	}

	public boolean isStarter()
	{
		return isStarter;
	}

}
